/**
 * Created with IntelliJ IDEA.
 * User: 5
 * Date: 16-12-20
 * Time: 下午12:47
 * To change this template use File | Settings | File Templates.
 */
public class SanYuanYunSuan {
    public static void main (String args[]){
        boolean  flag=true;
        boolean flag2=false;
        System.out.println(get(flag,flag2));
    }
    public static String get(Boolean flag,boolean flag2){

        return flag?flag2?"0":"1":"0";



    }
}
